<h1 class="<%= @assistance.stato_to_color %>">Assistenza per <%= link_to @assistance.client.name_or_society, @assistance.client %><%= " - Scaduta!" if @assistance.scaduta? %></h1>
<%= link_to 'Edit', edit_assistance_path(@assistance) %> |
<%= link_to 'Back', :back %>
<br /><br />
<div id="notes"><p><b>Note: </b><br /><textarea readonly="readonly" cols="30" rows="15"><%= @assistance.notes %></textarea></p></div>
<p>
	<b>Descrizione: </b><%= @assistance.short_desc %><br />
  <b>Operatore: </b><%= @assistance.operator.login %><br />
  <b>Stato: </b><%= @assistance.stato_to_s %><br />
  <b>Urgenza: </b><%= @assistance.urgency_to_s %><br />
  <b>Scadenza: </b><span class="<%= "scaduta" if @assistance.scaduta? %>"><%= @assistance.expiration_to_s %></span><br />
  <b>Durata: </b><%= @assistance.duration_to_s %><br />
	<b>Valore: </b><%= @assistance.token_to_s %><br />
  <b>Completata il: </b><%= @assistance.execution_to_s %><br />
  <b>Creata il: </b><%= @assistance.created_at.to_s(:short) %><br />
	<b>Resoconto: </b><%= @assistance.confirm_to_s %><br />
	<b>Tipologia: </b><%= @assistance.typology %><br />
	<b>Operazioni: </b><br />
		<% for operation in @assistance.operations do %><span>- <%= operation.description %></span><br /><% end %>
	<b>Progressione: </b><%= @assistance.num_ass %>a assistenza<br /><br />
</p>

<%= link_to 'Invio resoconto', { :action=>"preview_resoconto", :id => @assistance } %>